package fr.aprr.geoloc.client.widget;

import com.google.gwt.canvas.dom.client.Context2d;
import com.google.gwt.dom.client.ImageElement;
import com.google.gwt.event.dom.client.LoadEvent;
import com.google.gwt.event.dom.client.LoadHandler;
import com.google.gwt.user.client.ui.Image;

import fr.aprr.geoloc.client.Resources;

public class Vh implements IDrawable {
	
	public double positionX, positionY;
    public ImageElement image;
    public Image img;
    
	public Vh() {
		img = new Image(Resources.IMAGES.vh());
		
		img.addLoadHandler(new LoadHandler() {
			
			public void onLoad(LoadEvent event) {
				// TODO Auto-generated method stub
				
			}
		});
		
	}

   
	public void draw(Context2d context) {
		// TODO Auto-generated method stub
		image = new Image(Resources.IMAGES.vh()).getElement().cast();
		context.drawImage(image, 50, 0);
	}

}
